home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor1 / diss.doc < prev    next >
Text File  |  1995-03-31  |  3KB  |  65 lines

  1. (Comp.sys.handhelds) 
  2. Item: 2308 by ervin at pinbot.enet.dec.com 
  3. Author: [Joseph Ervin] 
  4.   Subj: New HP48SX Screen Dissolver 
  5.   Date: Mon Mar 04 1991 22:54  
  6.  
  7. [NOTE: For a cute demo of DISS in action, see DISSDEMO.  Also, the CLK 
  8. program by Dave Marsh uses DISS within a library.  -jkh-] 
  9.  
  10. Sorry for reposting this program so soon, but I found a potential bug and I 
  11. wanted to kill it before it bit anyone.  While I was at it, I shortened the 
  12. program by around 50 bytes, and improved the speed of the bit-wise dissolve 
  13. from 5 seconds down to around 4.2 seconds.   
  14.  
  15. Enjoy! 
  16.  
  17. >>>Joe 
  18. ************************************************************** 
  19. The following is a new version of my screen dissolver.  This version (0.2) is 
  20. slightly faster than the original version posted recently, and is roughly 50 
  21. bytes smaller. 
  22.  
  23. A future release may allow dissolving into the menu area when viewing the 
  24. stack, if people think that would be useful (let's hear some feedback :-). 
  25.  
  26. The program takes two arguments: 
  27.  
  28. 2: real number (zero or one) 
  29. 1: GROB (131x64) 
  30.  
  31. The program will do different things with the GROB depending on whether a 1 or 
  32. a 0 is in level 2.  If level 2 contains a 0, then the program will do a 
  33. bit-wise dissolve of the GROB on level 1 into PICT.  The idea here is that you 
  34. would use DISS in a program  after previously displaying some graphic image 
  35. via PVIEW.  When you execute DISS, the new graphic on level 1 will replace the 
  36. graphic currently on the display 1 pixel at a time, in a random fashion.  The 
  37. program currently requires both the GROB on level 1 and PICT to be 131x64.  
  38. Any other dimensions will generate an error message.   
  39.  
  40. If a 1 is on level 2 when DISS is executed, then instead of doing a bit-wise 
  41. dissolve, it will do what I call "tiling".  In this mode of operation, the 
  42. program will move random _nibbles_ from the level 1 GROB into PICT, rather 
  43. than doing one bit at a time.  The effect is slightly different, and it runs 
  44. around 5 times as fast as the bit-wise dissolve (4.2 seconds for a bit-wise 
  45. dissolve, and around .9 seconds for tiling).  I think both modes look pretty 
  46. cool (of course). :-) 
  47.  
  48. It is written in a combination of system RPL and machine language (like 
  49. Bill Wickes' ASC routines themselves). 
  50.  
  51. I thank Jan Brittenson for his assistance during this endeavor.  I could not  
  52. have finished this project without his wonderful STAR assembler and his  
  53. expert advice on writing machine language and system RPL code.  Also to be 
  54. credited are Alonzo Gariepy, who did much of the pioneering work on the saturn 
  55. processor, and Derek Nickel, who has provided a wealth of information 
  56. regarding system RPL programming on the 48SX. 
  57.  
  58. I will be watching the conference dilligently for feedback, and ideas for 
  59. improvement. I found it a simple matter to include this function into TETRIS 
  60. so that the startup screen dissolves into view, producing a nice effect. 
  61.  
  62. Enjoy! 
  63.  
  64. >>>Joe Ervin 
  65.